package com.yunhai.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.yunhai.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.HashMap;
import java.math.BigDecimal;

/**
 * 产品展示对象 t_product
 *
 * @author jxj
 * @date 2021-01-16
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_product")
public class Product implements Serializable {

    private static final long serialVersionUID=1L;


    /** $column.columnComment */
    @TableId(value = "id")
    private Long id;

    /** 父id */
    private Long parentId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 产品名称 */
    @Excel(name = "产品列表图")
    private String listPic;

    /** 产品内容 */
    @Excel(name = "产品内容")
    private String content;

    /** 产品分类   */
    @Excel(name = "产品分类  ")
    private Long typeId;

    /** 语言类型 */
    @Excel(name = "语言类型")
    private Long language;

    /** 详情图 */
    @Excel(name = "详情图")
    private String img;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdDate;

    /** $column.columnComment */
    private Date updatedDate;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}